package testing

object classes {

  class HasComp private () {
    println("Konstruktor")
    override def toString = "HasComp"
  }
  object HasComp {
    def create = new HasComp
    def apply() = new HasComp
    override def toString = "companion"
  }

  def main(args: Array[String]): Unit = {
    println(HasComp.create)
    println(HasComp())
    //println(HasComp)
  }
}
